package c.a.a;

import java.util.Arrays;

/* compiled from: LottieResult */
public final class r<V> {
    public final V a;
    public final Throwable b;

    public r(V v) {
        this.a = v;
        this.b = null;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof r)) {
            return false;
        }
        r rVar = (r) obj;
        Object obj2 = this.a;
        if (obj2 != null && obj2.equals(rVar.a)) {
            return true;
        }
        Throwable th = this.b;
        if (th == null || rVar.b == null) {
            return false;
        }
        return th.toString().equals(this.b.toString());
    }

    public int hashCode() {
        return Arrays.hashCode(new Object[]{this.a, this.b});
    }

    public r(Throwable th) {
        this.b = th;
        this.a = null;
    }
}
